for i in range(1, 101):
    if i % 7 == 0 or i % 10 == 7 or i // 10 == 7:
        print("过", end='\t')
    else:
        print(i, end='\t')
    if i % 10 == 0:
        print('')

print()

goods = {
    "1": {"name": "苹果", "price": 10},
    "2": {"name": "香蕉", "price": 5},
    "3": {"name": "西瓜", "price": 20},
}

# 提示用户输入商品编号和数量
num = input("请输入商品编号：")
quantity = int(input("请输入商品数量："))

price = goods[num]["price"] * quantity

pay = int(input("请输入付款金额："))
change = pay - price
print("找零金额为：", change)
